<?php if ($this->_var['best_goods']): ?>
  <?php $_from = $this->_var['best_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_0_15476100_1344084238');$this->_foreach['best_list'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['best_list']['total'] > 0):
    foreach ($_from AS $this->_var['goods_0_15476100_1344084238']):
        $this->_foreach['best_list']['iteration']++;
?>
  <?php if ($this->_foreach['best_list']['iteration'] % 3 == 1): ?>
	  <?php if (($this->_foreach['best_list']['iteration'] - 1) == 0): ?>
	  <div class="side_box">
	  <?php else: ?>
	  <div class="side_box2">
	  <?php endif; ?>
	  <h3>最新单品</h3>
  <?php endif; ?>
		<a href="<?php echo $this->_var['goods_0_15476100_1344084238']['url']; ?>">
				<img src="<?php echo $this->_var['goods_0_15476100_1344084238']['thumb']; ?>" width="200" height="102" alt="<?php echo htmlspecialchars($this->_var['goods_0_15476100_1344084238']['name']); ?>" />
				<dl>
                    <dt><?php echo $this->_var['goods_0_15476100_1344084238']['name']; ?><img src="themes/custom/images/site/arrow.png" /></dt>
                    <dd class="price">
						<span class="rmb">RMB</span>
						<?php if ($this->_var['goods_0_15476100_1344084238']['promote_price'] != ""): ?>
						<?php echo $this->_var['goods_0_15476100_1344084238']['promote_price']; ?>
						<?php else: ?>
						<?php echo $this->_var['goods_0_15476100_1344084238']['shop_price']; ?>
						<?php endif; ?>
						<span class="change">.00</span>
					</dd>
                </dl>
			</a>
	<?php if (($this->_foreach['best_list']['iteration'] - 1) % 3 == 2): ?>
	  <?php if (($this->_foreach['best_list']['iteration'] - 1) / 3 == 0): ?>
	  </div>
	  <?php else: ?>
	  </div>
	  <?php endif; ?>
  <?php endif; ?>
  <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php endif; ?>
